package com.dongge.service;

import com.dongge.dao.InformationDao;
import com.dongge.entity.Information;
import com.dongge.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by dongge on 16/7/31.
 */
@Transactional
public interface InformationService {



    long save(String content,User user);

    int update(long id,String content,User user);

    List<Information> getInformations();

    Information get(long id);

    int delete(long id);
}
